﻿using System;

namespace OnlineJudge
{
    /// <summary>
    /// 题目数据
    /// </summary>
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    public sealed class problemData
    {
        /// <summary>
        /// 标程
        /// </summary>
        public JudgeReportBase Solution;
        /// <summary>
        /// 特判程序
        /// </summary>
        public JudgeReportBase SpecialJudge;
        /// <summary>
        /// 问题测试配置参数
        /// </summary>
        public JudgeSetting JudgeSetting;
        /// <summary>
        /// OJ问题测试数据
        /// </summary>
        [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
        public sealed class testData
        {
            /// <summary>
            /// 测试编号
            /// </summary>
            public int TestId;
            /// <summary>
            /// 输入数据
            /// </summary>
            public string Input;
            /// <summary>
            /// 输出数据
            /// </summary>
            public string Output;
        }
        /// <summary>
        /// 测试数据集合
        /// </summary>
        public testData[] Tests;
        /// <summary>
        /// OJ同步最后更新时间
        /// </summary>
        public DateTime Time;
    }
}
